ifConnectionValue

Class: com.microstrategy.web.app.taglibs.IfConnectionValueTag

Usage:

This custom tag provides a way for evaluating a set of properties associated with connection values. For example: There's a predefined set of possible properties that can be asked for using this custom tag. If no property is specifed, the task of the custom tag will be to verify if there's a current session opened for the user or not.
If a property is specified, the task of the custom tag is verify the value of current connection information agains the value given. If the value is not specified, or it is empty, the task of the custom tag is to verify the existance of the property. For example:
  <web:ifConnectionValue mproperty="serverVersion" runat="server" >
    <web:mthen runat="server" >
       This text is rendered if there is a value available for server session. Since the "value" attribute was not specified, no value comparison is performed.
   </web:mthen>
 </web:ifConnectionValue>
 


Name Required? Description
mproperty false Indicates the property value that shall be retrieved from the current connection information.
Usage:
There's a predefined set of possible properties that can be asked for using this custom tag, which currently include serverVersion, authenticationMode, xmlAPIVersion, JVMVendor, JVMVersion, serverName, projectID, projectName, serverPort, userName, clientID, locale, loginFirst, userID . If no property is specifed, the task of the custom tag will be to verify if there's a current session opened for the user or not. If a property is specified, the task of the custom tag is verify the value of current connection information agains the value given. If the value is not specified, or it is empty, task of the custom tag is to verify the existance of the property. The following properties can be used:
  • serverVersion
  • xmlAPIVersion
  • JVMVendor
  • JVMVersion
  • serverName
  • projectID
  • projectName
  • projectAlias
  • serverPort
  • userName
  • clientID
  • locale
  • loginFirst Note: value attribute will be ignored for this property.
  • authenticationMode
  • userID
  • runat true Indicates that the ASP.Net control should be processed on the server
    value false Indicates the value to use for comparing it against the information returned by the indicated property.
    Usage:
    The value indicated here will be compared against the one retrieved from the requested property. If this attribute is not specified, then the task of the custom tag will be limited to just determining if there's a value (different from null or an empty string) assigned to the requested property.